
@RestController
public class UserController {
    @Autowired
    Private UserController userController;
··
    public A create(@RestBody Cup cup){
        usercontroller.create(cup);
        return success;
    }

    public A deleted(@PathVariable Integer id){
        usercontroller.deleted(id);
        return success();

    }

    public A update(RequestBody Cup cup ){
        userController.update(cup);
        return success();
    }

    public A read(@PathVariable("id")Integer id ){
        Cup cup = userController.read(id);
        return success(cup);
    }
}
